#!/usr/bin/python

from hips import appengine_unittest
import datetime
import unittest

from google.appengine.api import users
from google.appengine.ext import db

from hips import datastore
from hips import datastore_mocks


class DatastoreTestCase(appengine_unittest.AppEngineTest):
  """Tests that model definitions are sane and requirements are met."""

  # These are similar to the serialization tests, but are more useful
  # for finding errors in model defs at the datastore level.

  def testInstitution(self):
    model = datastore_mocks.CreateInstitution()
    self.assertTrue(model)

  def testDoctor(self):
    model = datastore_mocks.CreateDoctor()
    self.assertTrue(model)

  def testSchedule(self):
    model = datastore_mocks.CreateSchedule()
    self.assertTrue(model)

  def testDoctorConstraint(self):
    model = datastore_mocks.CreateDoctorConstraint()
    self.assertTrue(model)

  def testScheduleBlock(self):
    model = datastore_mocks.CreateScheduleBlock()
    self.assertTrue(model)

  def testScheduleSolution(self):
    model = datastore_mocks.CreateScheduleBlock()
    self.assertTrue(model)

  def testScheduleSolutionBlock(self):
    model = datastore_mocks.CreateScheduleSolutionBlock()
    self.assertTrue(model)

if __name__ == '__main__':
  unittest.main()
